package xiaopiya.robot.handler.help;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Ray (ayufox@gmail.com)
 * @version 0.1
 */
public class HelpConfig
{
	private Map<String, String> helpTxt = new HashMap<String, String>();

	public void add(String name, String txt)
	{
		this.helpTxt.put(name, txt);
	}

	public String getText(String command)
	{
		if (!helpTxt.containsKey(command))
		{
			command = "unknow";
		}
		return this.helpTxt.get(command);
	}
}
